<?php
namespace app\service\hash;

use think\App;
use think\Manager;

class Hash extends Manager
{
    protected $safeSecurity;
    protected $namespace = 'app\service\hash\\';

    function __construct(App $app)
    {
        parent::__construct($app);
        $this->safeSecurity = env('SAFE_SECURITY');
    }


    function getDefaultDriver()
    {
        return 'md5';
    }

    protected function resolveConfig(string $name)
    {
        return $this->safeSecurity;
    }

}